//接口地址
//let host = 'http://localhost:8080'
//let host = 'http://121.33.215.155/srs-business-api' //公司环境
let host = '/basic-api/srs-business-api' //uat环境
// let host = 'http://47.112.219.114:19165/srs-business-api' //测试环境
// let host = '/srs-business-api' //测试环境
// qt服务市场
let hostqt = '/mobile' //测试环境
let hostqtlogin = '/loginapi' //测试环境

const api = {
	download : `${host}/system/file/download`, //新加,为下载的接口
	dictUrl: `${host}/system/dict/data/dictList`,

	policyPolicyList: `${host}/policy/policy/list`,
	policyPolicyListRe: `${host}/policy/policy/recommendlist`,
	PolicyPolicySearch: `${host}/policy/policy/search`,
	PolicyPolicySearchHome: `${host}/policy/policy/searchHome`,
	PolicyRedemptionAnnounce: `${host}/policy/redemption/announce`,
	PolicyPolicyPolicydict: `${host}/policy/policy/policydict`,
	PolicyPolicyId: `${host}/policy/policy/`,
	policyApplyAddItem: `${host}/policy/apply/addItem`,
	policyApplyMyApplyPolicy: `${host}/policy/apply/myApplyPolicy`,
	policyApplyAddItemAgain: `${host}/policy/apply/addItemAgain`,
	policyApplyMyApplyRedemptionPolicy: `${host}/policy/apply/myApplyRedemptionPolicy`,
	policyRedemptionAddItem: `${host}/policy/redemption/addItem`,
	policyRedemptionAddItemAgain: `${host}/policy/redemption/addItemAgain`,
	policyRedemptionId: `${host}/policy/redemption/`,

	companyInitSelectInfo: `${host}/company/initSelectInfo`,
	companyInfoAuth: `${host}/company/infoAuth`,
	companyRegister: `${host}/company/register`,
	companySendAuthCode: `${host}/company/sendAuthCode`,
	companyLogin: `${host}/company/login`,
	companyUserPhoneLogin: `${host}/company/userPhoneLogin`,
	companyLibraryCompanyInfo: `${host}/company/library/companyInfo`,
	companyClueApplyLog: `${host}/company/clue/applyLog`,
	companyClueRevoke: `${host}/company/clue/revoke`,
	companyClueRelaunch: `${host}/company/clue/relaunch`,
	companyClueSubjoin: `${host}/company/clue/subjoin`,
	companyClueSubmovein: `${host}/company/clue/submovein`,
	companyClueSubmoveout: `${host}/company/clue/submoveout`,
	companyClueSubcancel: `${host}/company/clue/subcancel`,
	companyClueDetail: `${host}/company/clue/detail`,

	captchaImage: `${host}/captchaImage`,

	systemDictDataDictListDictType: `${host}/system/dict/data/dictList/`,
	systemRegionTree: `${host}/system/region/tree`,

	// 帮扶案例
	supportCaseList: `${host}/companyhelp/requirement/success/list`, //列表查询
	supportCaseDetail: `${host}/companyhelp/requirement/success/detail/`,
	// 务工人员
	workerList: `${host}/companyhelp/worker/library/list`, //列表查询
	workerDetail: `${host}/companyhelp/worker/library/detail/`, //务工人员详情
	workerApply: `${host}/mine/companyhelp/requirement/worker/library/apply`,//务工人员简历申请
	// 劳务诉求
	laborDemandList: `${host}/companyhelp/worker/request/list`, //列表查询
	laborDemandDetail: `${host}/companyhelp/worker/request/detail/`, //务工人员详情
	// 在线课程
	onlineCourseList: `${host}/companytrain/online/list`, //列表查询
	onlineCourseDetail: `${host}/companytrain/online/detail/`, //详情
	joinOnlineCourse: `${host}/mine/companytrain/online/join`, //在线课程参与
	// 培训通知
	trainNoticeList: `${host}/companytrain/notice/list`, //列表查询
	trainNoticeDetail: `${host}/companytrain/notice/detail/`, //详情
	signUpTrainNotice: `${host}/mine/companytrain/notice/signup`, //培训通知报名
	// 人才推荐
	talentList: `${host}/dttalent/library/list`, //列表查询
	educationSelectList: `${host}/dttalent/library/educationList`, //学历下拉列表
	// 企业空间 - 我申请的简历
	applyResumeList: `${host}/mine/companyhelp/requirement/worker/apply/list`, //列表查询
	applyResumeDetail: `${host}/mine/companyhelp/requirement/worker/apply/detail/`, //详情
	applyPass: `${host}/mine/companyhelp/requirement/worker/apply/pass`, //录用
	applyReject: `${host}/mine/companyhelp/requirement/worker/apply/reject`, //录用
	// 企业空间 - 我的培训 - 线上/线下培训
	myTrainingList: `${host}/mine/companytrain/notice/list`, //列表查询
	myTrainingDetail: `${host}/mine/companytrain/notice/detail/`, //详情
	feedback: `${host}/mine/companytrain/feedback`, //反馈
	// 企业空间 - 我的培训 - 在线课程
	myOnlineList: `${host}/mine/companytrain/online/list`, //列表查询
	myOnlineDetail: `${host}/mine/companytrain/online/detail/`, //详情
	//用工需求
	mineCompanyhelpRequirementAdd: `${host}/mine/companyhelp/requirement/add`, //我的招聘添加
	mineCompanyhelpRequirementEdit: `${host}/mine/companyhelp/requirement/edit`, //我的招聘修改
	mineCompanyhelpRequirementApply: `${host}/mine/companyhelp/requirement/apply`, //我的招聘提交申请
	mineCompanyhelpRequirementDelete: `${host}/mine/companyhelp/requirement/delete`, //我的招聘删除
	mineCompanyhelpRequirementFinish: `${host}/mine/companyhelp/requirement/finish`, //我的招聘已招
	mineCompanyhelpRequirementList: `${host}/mine/companyhelp/requirement/list`, //用工需求列表
	mineCompanyhelpRequirementDetailId: `${host}/mine/companyhelp/requirement/detail/`, //用工需求详情
	mineCompanyhelpRequirementWorkerList: `${host}/mine/companyhelp/requirement/worker/list`, //应聘人员列表
	mineCompanyhelpRequirementWorkerDetailId: `${host}/mine/companyhelp/requirement/worker/detail/`, //应聘人员列表
	mineCompanyhelpRequirementWorkerPass: `${host}/mine/companyhelp/requirement/worker/pass`, //录用应聘人员
	mineCompanyhelpRequirementWorkerReject: `${host}/mine/companyhelp/requirement/worker/reject`, //拒绝应聘人员

	// 金融服务
	systemFileList: `${host}/system/file/list`, // 附件查询
	systemFileUpload: `${host}/system/file/upload`, // 附件上传
	systemFile: `${host}/system/file/`, // 附件下载, 附件删除

	financeFundRegistrationList: `${host}/finance/fund/registration/list`, // 资金使用登记-查看资金使用：列表
	financeFundRegistrationListView: `${host}/finance/fund/registration/list/view`, // 资金使用登记-登记使用列表：查看
	financeFundRegistrationGet: `${host}/finance/fund/registration/get/`, //资金使用登记-登记使用详情：查看详情
	financeFundRegistrationAdd: `${host}/finance/fund/registration/add`, //资金使用登记-资金使用信息;新增

	financeFinanceProductInventory: `${host}/finance/financeProduct/inventory`, //金融产品：产品清单
	financeFinanceProductGet: `${host}/finance/financeProduct/get/`, //金融产品：详情
	financeFinanceProductApplyAdd: `${host}/finance/financeProduct/apply/add`, //金融产品申请：立即申请和编辑
	financeFinanceProductApplyListByCompany: `${host}/finance/financeProduct/apply/listByCompany`, //企业空间：我申报的金融产品
	financeFinanceProductApplyGet: `${host}/finance/financeProduct/apply/get/`, //企业空间：编辑详情页
	//楼宇列表
	buildingList: `${host}/building/investment/info/list`,//楼宇列表
	buildingInformationDetails: `${host}/building/investment/info/get/`,//楼宇信息详情
	buildingDynamicList: `${host}/building/investment/dynamics/list`,//楼宇动态列表
	buildingDynamicsDetails: `${host}/building/investment/dynamics/get/`,//楼宇动态详情
	associatedBuildingList: `${host}/building/investment/dynamics/relatedBuildingList`,//关联楼宇列表
	dynamicRelatedRecommendation: `${host}/building/investment/dynamics/recommendationList`,//动态相关推荐
	buildingRelatedRecommendations: `${host}/building/investment/info/recommendationList`,//楼宇相关推荐
	listOfRelatedPolicies: `${host}/building/investment/relatedPolicy/getPolicyListByBuildingInfoId`,//关联政策列表
	buildingSendingVerificationCode: `${host}/building/investment/intendedUser/sendAuthCode`,//联系楼宇 发送验证码接口
	buildingVerificationCode: `${host}/building/investment/intendedUser/verifyAuthCode`,//联系楼宇 校验验证码
	dictionaryQuery: `${host}/system/dict/data/batchTypes/`//字典查询
}

const tokenKey = 'token'
const companyInfoKey = 'companyInfo'
const lastUrlKey = 'lastUrl'

module.exports = {
	host,
	hostqt,
	hostqtlogin,
	api,
	tokenKey,
	companyInfoKey,
	lastUrlKey
}
